export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  refreshBtn: false,
  showClomnuBtn: false,
  searchMenuSpan: 6,
  searchSize: 'mini',
  column: [{
    label: '字典编码',
    prop: 'dictCode',
    'search': true,
    editDisabled: true,
    rules: [{
      required: true,
      message: '请输入字典编码',
      trigger: 'blur'
    }]
  }, {
    label: '字典名称',
    prop: 'dictName',
    rules: [{
      required: true,
      message: '请输入字典名称',
      trigger: 'blur'
    }]
  }, {
    label: '备注信息',
    prop: 'dictDesc'
  }, {
    width: 150,
    label: '创建时间',
    prop: 'createTime',
    type: 'datetime',
    addDisplay: false,
    editDisabled: true,
    format: 'yyyy-MM-dd HH:mm:ss',
    valueFormat: 'yyyy-MM-dd HH:mm:ss'
  }]
}

export const tableDictItemOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  refreshBtn: false,
  showClomnuBtn: false,
  searchSize: 'mini',
  column: [{
    label: '字典项编码',
    prop: 'dictItemCode',
    addDisabled: false,
    editDisabled: true,
    rules: [{
      required: true,
      message: '请输入字典项编码',
      trigger: 'blur'
    }]
  }, {
    width: 150,
    label: '字典项名称',
    prop: 'dictItemName',
    rules: [{
      required: true,
      message: '请输入字典项名称',
      trigger: 'blur'
    }]
  }, {
    label: '描述',
    prop: 'dictItemDesc'
  }]
}
